{template 'web/common/common'}
{template 'web/system/navbar'}
<link rel="stylesheet" type="text/css" href="../addons/kundian_farm/resource/css/style.css" />
<div class="panel panel-success">
    <div class="panel-heading">
        <h3 class="panel-title">
            物联网设置
        </h3>
    </div>
    <div class="panel-body">
        <form id="sign-form" class="form-horizontal" role="form" method="post" action="{url 'site/entry/webThing',array('m'=>'kundian_farm','op'=>'webThingsSetSave','version_id'=>$_GPC['version_id'])}" name="submit" style="padding: 20px 0;">
            <div class="panel panel-info">
                <div class="panel-heading">
                    <h3 class="panel-title"><p>提示：</p>
                        <p>1、物联网设备用于土地种植，对设备进行远程控制，主要作用于获取土地的温度、光照、二氧化碳、水分等信息。</p>
                        <p>2、可远程控制设备对植物进行浇水、施肥、除草、杀虫操作。</p>
                        <p>3、本物联网设备对接的接口为“机智云平台”接口。</p>
                        <p>3、详细文档请查看 <a target="_blank" href="http://docs.gizwits.com/zh-cn/overview/overview.html">http://docs.gizwits.com/zh-cn/overview/overview.html</a>。</p>

                    </h3>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">是否物联网操作板块</label>
                <div class="col-sm-8">
                    {if $list['is_open_webthing']==1}
                    <input type="checkbox" checked class="js-switch" value="1" name="is_open_webthing">
                    {else}
                    <input type="checkbox" class="js-switch" name="is_open_webthing" value="1">
                    {/if}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">APPID</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="webthing_appid" id="webthing_appid" value="{$list['webthing_appid']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">用户名（username/email/phone）</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="webthing_username" id="webthing_username" value="{$list['webthing_username']}">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">密码</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control"  name="webthing_password" id="webthing_password" value="{$list['webthing_password']}">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-success">保存</button>
                </div>
            </div>
        </form>
    </div>
</div>
